from django.db import models

# Create your models here.
class Category(models.Model):
    name = models.CharField(max_length=255)
    icon=models.ImageField(upload_to='media/category/',null=True, blank=True)
    pid=models.ForeignKey('self',on_delete=models.CASCADE,null=True,blank=True)
    def __str__(self):
        return self.name